<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition>
	<h:panelGroup layout="block" id="panelExportador"
		rendered="#{pManagedBean.isExibirPanelGridListagem}">

		<p:panel id="exportador" header="Exportar Dados" toggleable="true" collapsed="true" 
			rendered="#{pManagedBean.isExibirLista}">

			<p:panel header="#{i18n.colExpDadosPaginaCorrente}"
				styleClass="col-md-6">

				<h:commandLink title="#{i18n['colExpDados.excel']}">
					<p:graphicImage value="/resources/imagens/excel.png"
						style="border:none" />
					<p:dataExporter type="xls" target="tbl" fileName="DadosExportados"
						pageOnly="true" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.pdf']}">
					<p:graphicImage value="/resources/imagens/pdf.png"
						style="border:none" />
					<p:dataExporter type="pdf" target="tbl" fileName="DadosExportados"
						pageOnly="true" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.csv']}">
					<p:graphicImage value="/resources/imagens/csv.png"
						style="border:none" />
					<p:dataExporter type="csv" target="tbl" fileName="DadosExportados"
						pageOnly="true" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.xml']}">
					<p:graphicImage value="/resources/imagens/xml.png"
						style="border:none" />
					<p:dataExporter type="xml" target="tbl" fileName="DadosExportados"
						pageOnly="true" />
				</h:commandLink>

			</p:panel>

			<p:panel header="#{i18n.colExpDados}" styleClass="col-md-6">

				<h:commandLink title="#{i18n['colExpDados.excel']}">
					<h:graphicImage library="imagens" name="excel.png"
						style="border:none" />
					<p:dataExporter type="pdf" target="tbl" fileName="DadosExportados" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.pdf']}">
					<h:graphicImage library="imagens" name="pdf.png"
						style="border:none" />
					<p:dataExporter type="pdf" target="tbl" fileName="DadosExportados" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.csv']}">
					<h:graphicImage library="imagens" name="csv.png"
						style="border:none" />
					<p:dataExporter type="csv" target="tbl" fileName="DadosExportados" />
				</h:commandLink>

				<h:commandLink title="#{i18n['colExpDados.xml']}">
					<h:graphicImage library="imagens" name="xml.png"
						style="border:none" />
					<p:dataExporter type="xml" target="tbl" fileName="DadosExportados" />
				</h:commandLink>

			</p:panel>
			
			<div class="clear"/>
		</p:panel>
	</h:panelGroup>
</ui:composition>

</html>